package com.tledu.springboot02.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Antg
 * @date 2021/8/24  15:08
 */
@Controller
public class HelloController {
    @RequestMapping("/hello")
    public String hello(String name, Model model){
        model.addAttribute("name",name);
        return "hello";
    }
}
